// GreenTriangle.h: interface for the CGreenTriangle class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GREENTRIANGLE_H__EF918376_8E56_11D2_807B_00A0C91F41A7__INCLUDED_)
#define AFX_GREENTRIANGLE_H__EF918376_8E56_11D2_807B_00A0C91F41A7__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "Shape.h"

class CGreenTriangle : public CShape  
{
public:
	virtual int Draw(CDC *pDC, BOOL bErase=FALSE);
	void SetProperty(CPoint base,int len,int angle=-90);
	void SetProperty(int x,int y,int len,int angle=-90);
	CGreenTriangle();
	CGreenTriangle(CPoint base,int len, int angle=-90);
	virtual ~CGreenTriangle();

    //Attributes
public:
	CPoint & GetProperty(int &len, int &angle);
	void Init();
    CPoint  m_Base;
    int     m_nAngle;
    int     m_nLength;
    CPoint  p1,p2,p3;  // the three points
    CPoint  m_Points[3];
};

#endif // !defined(AFX_GREENTRIANGLE_H__EF918376_8E56_11D2_807B_00A0C91F41A7__INCLUDED_)
